<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>XSLFShape (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="XSLFShape (POI API Documentation)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/XSLFShape.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShadow.html" title="class in org.apache.poi.xslf.usermodel"><span class="strong">PREV CLASS</span></a></li>
<li><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShapeContainer.html" title="interface in org.apache.poi.xslf.usermodel"><span class="strong">NEXT CLASS</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/poi/xslf/usermodel/XSLFShape.html" target="_top">FRAMES</a></li>
<li><a href="XSLFShape.html" target="_top">NO FRAMES</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>SUMMARY:&nbsp;</li>
<li>NESTED&nbsp;|&nbsp;</li>
<li>FIELD&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">CONSTR</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">METHOD</a></li>
</ul>
<ul class="subNavList">
<li>DETAIL:&nbsp;</li>
<li>FIELD&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">CONSTR</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">METHOD</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<p class="subTitle">org.apache.poi.xslf.usermodel</p>
<h2 title="Class XSLFShape" class="title">Class XSLFShape</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.apache.poi.xslf.usermodel.XSLFShape</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFGraphicFrame.html" title="class in org.apache.poi.xslf.usermodel">XSLFGraphicFrame</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFGroupShape.html" title="class in org.apache.poi.xslf.usermodel">XSLFGroupShape</a>, <a href="../../../../../org/apache/poi/xslf/usermodel/XSLFSimpleShape.html" title="class in org.apache.poi.xslf.usermodel">XSLFSimpleShape</a></dd>
</dl>
<hr>
<br>
<pre><a href="../../../../../org/apache/poi/util/Beta.html" title="annotation in org.apache.poi.util">@Beta</a>
public abstract class <strong>XSLFShape</strong>
extends java.lang.Object</pre>
<div class="block">Base super-class class for all shapes in PresentationML</div>
<dl><dt><span class="strong">Author:</span></dt>
  <dd>Yegor Kozlov</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShape.html#XSLFShape()">XSLFShape</a></strong>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShape.html#applyTransform(java.awt.Graphics2D)">applyTransform</a></strong>(java.awt.Graphics2D&nbsp;graphics)</code>
<div class="block">Apply 2-D transforms before drawing this shape.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShape.html#draw(java.awt.Graphics2D)">draw</a></strong>(java.awt.Graphics2D&nbsp;graphics)</code>
<div class="block">Draw this shape into the supplied canvas</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>abstract java.awt.geom.Rectangle2D</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShape.html#getAnchor()">getAnchor</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShape.html#getFlipHorizontal()">getFlipHorizontal</a></strong>()</code>
<div class="block">Whether the shape is horizontally flipped</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShape.html#getFlipVertical()">getFlipVertical</a></strong>()</code>
<div class="block">Whether the shape is vertically flipped</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>abstract double</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShape.html#getRotation()">getRotation</a></strong>()</code>
<div class="block">Rotation angle in degrees</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShape.html#getShapeId()">getShapeId</a></strong>()</code>
<div class="block">Returns a unique identifier for this shape within the current document.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>abstract java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShape.html#getShapeName()">getShapeName</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>abstract org.apache.xmlbeans.XmlObject</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShape.html#getXmlObject()">getXmlObject</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShape.html#setAnchor(java.awt.geom.Rectangle2D)">setAnchor</a></strong>(java.awt.geom.Rectangle2D&nbsp;anchor)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShape.html#setFlipHorizontal(boolean)">setFlipHorizontal</a></strong>(boolean&nbsp;flip)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShape.html#setFlipVertical(boolean)">setFlipVertical</a></strong>(boolean&nbsp;flip)</code>
<div class="block">Whether the shape is vertically flipped</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>abstract void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShape.html#setRotation(double)">setRotation</a></strong>(double&nbsp;theta)</code>
<div class="block">Rotate this shape.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="XSLFShape()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>XSLFShape</h4>
<pre>public&nbsp;XSLFShape()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="getAnchor()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAnchor</h4>
<pre>public abstract&nbsp;java.awt.geom.Rectangle2D&nbsp;getAnchor()</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>the position of this shape within the drawing canvas.
         The coordinates are expressed in points</dd></dl>
</li>
</ul>
<a name="setAnchor(java.awt.geom.Rectangle2D)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAnchor</h4>
<pre>public abstract&nbsp;void&nbsp;setAnchor(java.awt.geom.Rectangle2D&nbsp;anchor)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>anchor</code> - the position of this shape within the drawing canvas.
               The coordinates are expressed in points</dd></dl>
</li>
</ul>
<a name="getXmlObject()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getXmlObject</h4>
<pre>public abstract&nbsp;org.apache.xmlbeans.XmlObject&nbsp;getXmlObject()</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>the xml bean holding this shape's data</dd></dl>
</li>
</ul>
<a name="getShapeName()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShapeName</h4>
<pre>public abstract&nbsp;java.lang.String&nbsp;getShapeName()</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>human-readable name of this shape, e.g. "Rectange 3"</dd></dl>
</li>
</ul>
<a name="getShapeId()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShapeId</h4>
<pre>public abstract&nbsp;int&nbsp;getShapeId()</pre>
<div class="block">Returns a unique identifier for this shape within the current document.
 This ID may be used to assist in uniquely identifying this object so that it can
 be referred to by other parts of the document.
 <p>
 If multiple objects within the same document share the same id attribute value,
 then the document shall be considered non-conformant.
 </p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>unique id of this shape</dd></dl>
</li>
</ul>
<a name="setRotation(double)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRotation</h4>
<pre>public abstract&nbsp;void&nbsp;setRotation(double&nbsp;theta)</pre>
<div class="block">Rotate this shape.
 <p>
 Positive angles are clockwise (i.e., towards the positive y axis);
 negative angles are counter-clockwise (i.e., towards the negative y axis).
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theta</code> - the rotation angle in degrees.</dd></dl>
</li>
</ul>
<a name="getRotation()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRotation</h4>
<pre>public abstract&nbsp;double&nbsp;getRotation()</pre>
<div class="block">Rotation angle in degrees
 <p>
 Positive angles are clockwise (i.e., towards the positive y axis);
 negative angles are counter-clockwise (i.e., towards the negative y axis).
 </p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>rotation angle in degrees</dd></dl>
</li>
</ul>
<a name="setFlipHorizontal(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFlipHorizontal</h4>
<pre>public abstract&nbsp;void&nbsp;setFlipHorizontal(boolean&nbsp;flip)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>flip</code> - whether the shape is horizontally flipped</dd></dl>
</li>
</ul>
<a name="setFlipVertical(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFlipVertical</h4>
<pre>public abstract&nbsp;void&nbsp;setFlipVertical(boolean&nbsp;flip)</pre>
<div class="block">Whether the shape is vertically flipped</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>flip</code> - whether the shape is vertically flipped</dd></dl>
</li>
</ul>
<a name="getFlipHorizontal()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFlipHorizontal</h4>
<pre>public abstract&nbsp;boolean&nbsp;getFlipHorizontal()</pre>
<div class="block">Whether the shape is horizontally flipped</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>whether the shape is horizontally flipped</dd></dl>
</li>
</ul>
<a name="getFlipVertical()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFlipVertical</h4>
<pre>public abstract&nbsp;boolean&nbsp;getFlipVertical()</pre>
<div class="block">Whether the shape is vertically flipped</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>whether the shape is vertically flipped</dd></dl>
</li>
</ul>
<a name="draw(java.awt.Graphics2D)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>draw</h4>
<pre>public abstract&nbsp;void&nbsp;draw(java.awt.Graphics2D&nbsp;graphics)</pre>
<div class="block">Draw this shape into the supplied canvas</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>graphics</code> - the graphics to draw into</dd></dl>
</li>
</ul>
<a name="applyTransform(java.awt.Graphics2D)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>applyTransform</h4>
<pre>protected&nbsp;void&nbsp;applyTransform(java.awt.Graphics2D&nbsp;graphics)</pre>
<div class="block">Apply 2-D transforms before drawing this shape. This includes rotation and flipping.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>graphics</code> - the graphics whos transform matrix will be modified</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/XSLFShape.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShadow.html" title="class in org.apache.poi.xslf.usermodel"><span class="strong">PREV CLASS</span></a></li>
<li><a href="../../../../../org/apache/poi/xslf/usermodel/XSLFShapeContainer.html" title="interface in org.apache.poi.xslf.usermodel"><span class="strong">NEXT CLASS</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/poi/xslf/usermodel/XSLFShape.html" target="_top">FRAMES</a></li>
<li><a href="XSLFShape.html" target="_top">NO FRAMES</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>SUMMARY:&nbsp;</li>
<li>NESTED&nbsp;|&nbsp;</li>
<li>FIELD&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">CONSTR</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">METHOD</a></li>
</ul>
<ul class="subNavList">
<li>DETAIL:&nbsp;</li>
<li>FIELD&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">CONSTR</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">METHOD</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>
                <i>Copyright 2014 The Apache Software Foundation or
        its licensors, as applicable.</i>
            </small></p>
</body>
</html>
